home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 3
/
Light ROM 3 - Disc 2.iso
/
programs
/
amiga
/
dps
/
par252.lha
/
rexx
/
ExportAll.ddr
< prev
next >
Wrap
Text File
|
1993-12-04
|
3KB
|
92 lines
==========================================================================
25 Read subscription article (text)
.../Mailing Lists/Lightwave (mail to: lightwave@bobsbox.rent.com)
21400.3.3.1781 PAR stills-->RGB batch script
11/29/93 23:53 82/ Jeric@cup.portal.com
Lines 1 to 49 of 83 (59%)
------------------------
Hi Guys & Gals!
The appended AREXX script is useful in those times when
you forget to set the ANIM gadget on your PAR.
Read it carefully! One line has to be changed if you are
using a PAR s/w version earlier than 1.44!
Enjoy!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ CUT HERE ^^^^^^^^^^^^^^^^^^^^^^^^^^^
/* ExportALL.REXX , exploring the wonderful world of SHOWDIR */
/* For use with PAR s/w versions 1.44 and later. */
/* Alter line 58 to "SAVE" rather than "EXPORT" for earlier
software versions. */
/* This AREXX script converts all the stills in a given PAR
directory into RGB files on an AmigaDOS device. Set your
PAR software to the AmigaDOS directory you want the RGB
files to go to. Set your CLI CD to the PAR directory.
Invoke this script from your CLI.
This is for those of use who neglect to set the ANIM mode on
the PAR and wind up with 300 still frames instead of an
animation! */
/****************************************************************** *
DIRECTIONS:
CD to the directory you want to export. *
Invoke this AREXX script. *
******************************************************************* */
say "ExportAll.rexx here!"
/* Add appropriate libraries */
if ~show('L', "rexxsupport.library") then do
/* if library is not open, try to open it */
if addlib('rexxsupport.library',0,-30,) then
say "Added rexxsupport.library."
else do
say "rexxsupport.library not available, quitting..."
exit 10
end
end
/* Get current directory */
dirname=pragma('D')
say "Looks like we're in" dirname
/*get dir, pad w/linefeeds, translate linefeeds>spaces, space>'80'x*/
filelist=TRANSLATE(SHOWDIR(dirname,'f','0a'x),'80'x,'200a'x)
i=1
DO i=1 TO WORDS(filelist)
filename = TRANSLATE((WORD(filelist,i)),'20'x, '80'x)
say "Working on " filename
call convert(filename)
end
exit
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
CONVERT:
PARSE ARG filename
say " In convert subroutine, filename=" filename
address "DDR"
'play' filename
'export' /* change to SAVE for pre 1.44 s/w versions. */
address command
OPTIONS FAILAT 10
RETURN
/* --------------------------------------------------------- */
exit /* Prevents program execution from falling into subroutines */
wait:
PARSE ARG pause
call time 'R' /* reset timer */
say "Waiting for" pause" seconds."
do while time('E')<pause
end
return